﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="TourManager.aspx.cs" Inherits="admin_TourManager" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Namespace="Encosia" Assembly="HighslideImage" TagPrefix="encosia" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style4
        {
            color: #FFFFFF;
            width: 99px;
        }
        .style5
        {
            color: #FFFF00;
            width: 92px;
        }
        .style6
        {
            width: 99px;
            color: yellow;
        }
        .style7
        {
            color: yellow;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">  
    </asp:ToolkitScriptManager> 

    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <fieldset style="width:820px">
                <legend class="style6"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Search</strong></legend>
                <table style="width:820px">
                    <tr>
                        <td class="style4" style="width:15%">From:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtFrom" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4" style="width:15%">To:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txtTo" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style4" style="width:15%">Depart:</td>
                        <td>
                            <asp:TextBox ID="txtDepartDate" runat="server" Width="190px"></asp:TextBox>
                            <%--<asp:Button ID="btnShowDepartDate" runat="server" Text="...." 
                                onclick="btnShowDepartDate_Click" />--%>
                                <asp:CalendarExtender ID="CalendarExtender2" TargetControlID="txtDepartDate" PopupButtonID="imgDepartDate" runat="server" Format="dd/MM/yyyy" />
                            <%--<asp:Calendar ID="departDate" runat="server" BackColor="#FFFFCC" 
                                BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                                Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                                ShowGridLines="True" Visible="False" Width="220px" 
                                onselectionchanged="departDate_SelectionChanged">
                                <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                                <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                                <OtherMonthDayStyle ForeColor="#CC9966" />
                                <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                                <SelectorStyle BackColor="#FFCC66" />
                                <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                    ForeColor="#FFFFCC" />
                                <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                            </asp:Calendar>--%>
                            <asp:ImageButton ID="imgDepartDate" runat="server" 
                                ImageUrl="~/img/cal.gif" />
                        </td>
                        <td class="style4" style="width:15%">Return:</td>
                        <td>
                            <asp:TextBox ID="txtReturnDate" runat="server"  Width="190px"></asp:TextBox>
                            <%--<asp:Button ID="btnShowReturnDate" runat="server" Text="...." 
                                onclick="btnShowReturnDate_Click" />--%>
                                <asp:CalendarExtender ID="CalendarExtender1" PopupButtonID="imgReturnDate"
                                TargetControlID="txtReturnDate" runat="server" Format="dd/MM/yyyy" />
                           <%-- <asp:Calendar ID="returnDate" runat="server" BackColor="#FFFFCC" 
                                BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                                Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                                ShowGridLines="True" Visible="False" Width="220px" 
                                onselectionchanged="returnDate_SelectionChanged">
                                <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                                <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                                <OtherMonthDayStyle ForeColor="#CC9966" />
                                <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                                <SelectorStyle BackColor="#FFCC66" />
                                <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                    ForeColor="#FFFFCC" />
                                <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                            </asp:Calendar>--%>
                            <asp:ImageButton ID="imgReturnDate" runat="server" ImageUrl="~/img/cal.gif" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" style="text-align:right">
                            <asp:ImageButton ID="btnSearch" runat="server" 
                                ImageUrl="~/img/btnSearch.png" onclick="btnSearch_Click" />
                        </td>
                    </tr>
                </table>
            </fieldset>
            <br />

            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" 
                BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="tourID" 
                ForeColor="Black" GridLines="Vertical" 
                OnPageIndexChanging="GridView1_PageIndexChanging" 
                OnRowDeleting="GridView1_RowDeleting" 
                OnSelectedIndexChanging="GridView1_SelectedIndexChanging" Width="820px" 
                EmptyDataText="No Record Found!">
                <FooterStyle BackColor="#CCCCCC" />
                <Columns>
                    <asp:BoundField HeaderText="No" DataField="NO">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_right"/>
                    <ItemStyle Width="5px" CssClass="text_right"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="tourCode" HeaderText="Code" Visible="False" />
                    <asp:BoundField DataField="tourName" HeaderText="Name">
                    <ControlStyle Width="100px" />
                    <HeaderStyle ForeColor="Yellow" CssClass="text_left"/>
                    <ItemStyle Width="155px" CssClass="text_left"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="race" HeaderText="Race" Visible="False" />
                    <asp:BoundField DataField="placeStart" HeaderText="Place start">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_left"/>
                    <ItemStyle Width="75px" CssClass="text_left"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="placeEnd" HeaderText="Place end">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_left"/>
                    <ItemStyle Width="75px" CssClass="text_left"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="startDate" DataFormatString="{0:d}" 
                        HeaderText="Date start">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_center" />
                    <ItemStyle Width="75px" CssClass="text_center"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="endDate" DataFormatString="{0:d}" 
                        HeaderText="Date end">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_center" />
                    <ItemStyle Width="75px" CssClass="text_center"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="intervalTime" HeaderText="Interval time" 
                        Visible="False">
                    <HeaderStyle  />
                    <ItemStyle  />
                    </asp:BoundField>
                    <asp:BoundField DataField="hotelName" HeaderText="Hotel">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_left"/>
                    <ItemStyle Width="110px" CssClass="text_left"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="price" DataFormatString="{0:C}" HeaderText="Price">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_right" />
                    <ItemStyle Width="15px" CssClass="text_right"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="sellPrice" DataFormatString="{0:C}" 
                        HeaderText="Sell price" Visible="False" />
                    <asp:BoundField DataField="itinerary" HeaderText="Itinerary">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_left"/>
                    <ItemStyle Width="160px" CssClass="text_left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="planTour" HeaderText="Plant" Visible="False" />
                    <asp:TemplateField ShowHeader="False">
                        <EditItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                                CommandName="Update" Text="Update"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                CommandName="Cancel" Text="Cancel"></asp:LinkButton>
                        </EditItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="20px" />
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                                CommandName="select" ImageUrl="~/img/edit.gif" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ShowHeader="False">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="20px" />
                        <ItemTemplate>
                            &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" 
                                CommandName="Delete" ImageUrl="~/img/delete.gif" 
                                onclientclick="return confirm('Are you sure?');" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="status" HeaderText="Status" Visible="False" />
                </Columns>
                <SelectedRowStyle Font-Bold="False" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#CCCCCC" />
<%--                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#808080" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#383838" />--%>
            </asp:GridView>
            <asp:LinkButton ID="LinkButton3" runat="server" 
                OnClick="LinkButton3_Click" Font-Underline="True" ForeColor="White">New Tour</asp:LinkButton>
        </asp:View>
        <br />
        <asp:View ID="View2" runat="server">
            <table style="width: 90%">
                <tr>
                    <td colspan="4">
                        <strong><span style="font-size: 16pt; " class="style5">New Tour</span><asp:HiddenField 
                            ID="hiddenHotelID" runat="server" />
                        </strong>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Code:
                    </td>
                    <td style="text-align: left" colspan="3">
                        <asp:TextBox ID="txtCode" runat="server" MaxLength="5" Width="79px"></asp:TextBox>
                        <span style="color: Red">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtCode" ErrorMessage="Code is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Name:</td>
                    <td style="text-align: left; width:35%">
                        <asp:TextBox ID="txtTourName" runat="server" Width="213px"></asp:TextBox>
                        <span style="color:Red">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtTourName" ErrorMessage="Name is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                    </td>
                    <td class="style1" style="width: 15%; ">
                        Race:
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txtRace" runat="server" Width="52px">70</asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtRace" ErrorMessage="Race must is number!" ForeColor="Red" 
                            ValidationExpression="[\d]*">(*)</asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Place start:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtPlaceStart" runat="server" Width="213px"></asp:TextBox>
                        <span style="color: Red">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtPlaceStart" ErrorMessage="Place start is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                    </td>
                    <td style="width: 15%; " class="style1">
                        Place end:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtPlaceEnd" runat="server" Width="213px"></asp:TextBox>
                        <span style="color: Red">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="txtPlaceEnd" ErrorMessage="Place end is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Date start:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtStartDate" runat="server" 
                            ontextchanged="txtStartDate_TextChanged" AutoPostBack="True"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender3" TargetControlID="txtStartDate" PopupButtonID="imgStartDate" runat="server" Format="dd/MM/yyyy"/>  
                        <%--<asp:Button ID="btnShowStartDate" runat="server" Text="...." 
                            onclick="btnShowStartDate_Click" CausesValidation="False" />--%>
                        <span style="color: Red">
                            <asp:ImageButton ID="imgStartDate" runat="server" CausesValidation="False" 
                            ImageUrl="~/img/cal.gif" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" 
                                ControlToValidate="txtStartDate" 
                            ErrorMessage="Date start is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                        <%--<asp:Calendar ID="startDate" runat="server" SelectedDate="<%# DateTime.Now %>" 
                            BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" 
                            Font-Names="Verdana" Font-Size="8pt" 
                            ForeColor="#663399" Height="200px" ShowGridLines="True" Width="220px" 
                            Visible="False" onselectionchanged="startDate_SelectionChanged">
                            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                            <OtherMonthDayStyle ForeColor="#CC9966" />
                            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                            <SelectorStyle BackColor="#FFCC66" />
                            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                ForeColor="#FFFFCC" />
                            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        </asp:Calendar>--%>
                    </td>
                    <td style="width: 15%; " class="style1">
                        Date end:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtEndDate" runat="server" AutoPostBack="True" 
                            ontextchanged="txtEndDate_TextChanged"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender4" TargetControlID="txtEndDate" PopupButtonID="imgEndDate" runat="server" Format="dd/MM/yyyy"/>  
                        <%--<asp:Button ID="btnShowEndDate" runat="server" Text="...." 
                            onclick="btnShowEndDate_Click" CausesValidation="False" />--%>
                        <span style="color: Red">
                        <asp:ImageButton ID="imgEndDate" runat="server" CausesValidation="False" 
                            ImageUrl="~/img/cal.gif" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" 
                            ControlToValidate="txtEndDate" ErrorMessage="Date end is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                        <%--<asp:Calendar ID="endDate" runat="server" SelectedDate="<%# DateTime.Now %>" 
                            BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" 
                            DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                            ForeColor="#663399" Height="200px" ShowGridLines="True" Width="220px" 
                            onselectionchanged="endDate_SelectionChanged" Visible="False">
                            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                            <OtherMonthDayStyle ForeColor="#CC9966" />
                            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                            <SelectorStyle BackColor="#FFCC66" />
                            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                ForeColor="#FFFFCC" />
                            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        </asp:Calendar>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Interval time:
                    </td>
                    <td style="width: 85%; text-align: left" colspan="3">
                        <asp:DropDownList ID="ddlIntervalTime" runat="server">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>1.5</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>2.5</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>3.5</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>4.5</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>5.5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>6.5</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>7.5</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem>8.5</asp:ListItem>
                            <asp:ListItem>9</asp:ListItem>
                            <asp:ListItem>9.5</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                            <asp:ListItem>11</asp:ListItem>
                            <asp:ListItem>12</asp:ListItem>
                            <asp:ListItem>13</asp:ListItem>
                            <asp:ListItem>14</asp:ListItem>
                            <asp:ListItem>15</asp:ListItem>
                            <asp:ListItem>16</asp:ListItem>
                            <asp:ListItem>17</asp:ListItem>
                            <asp:ListItem>18</asp:ListItem>
                            <asp:ListItem>19</asp:ListItem>
                            <asp:ListItem>20</asp:ListItem>
                            <asp:ListItem>21</asp:ListItem>
                            <asp:ListItem>22</asp:ListItem>
                            <asp:ListItem>23</asp:ListItem>
                            <asp:ListItem>24</asp:ListItem>
                            <asp:ListItem>25</asp:ListItem>
                            <asp:ListItem>26</asp:ListItem>
                            <asp:ListItem Value="27"></asp:ListItem>
                            <asp:ListItem>28</asp:ListItem>
                            <asp:ListItem>29</asp:ListItem>
                            <asp:ListItem>30</asp:ListItem>
                            <asp:ListItem>31</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>

            <fieldset style="width:90%">
                    <legend class="style7">Hotel&#39;s info</legend>
                    <table style="width: 100%">
                        <tr>
                            <td class="style4" style="width:15%">
                                Hotel:</td>
                            <td style="width: 35%; text-align: left">
                                <asp:DropDownList ID="ddlHotel" runat="server">
                                </asp:DropDownList>
                                &nbsp;
                                <asp:LinkButton ID="LinkButton6" runat="server" ForeColor="Yellow" 
                                    onclick="LinkButton6_Click" CausesValidation="False">Detail</asp:LinkButton>
                            </td>
                            <td class="style4" style="width:15%">Room:</td>
                            <td><asp:TextBox ID="txtRoom" runat="server" Width="68px"></asp:TextBox>
                                <span style="color: Red">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                                    ControlToValidate="txtRoom" ErrorMessage="Room is required!">(*)</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                    ControlToValidate="txtRoom" ErrorMessage="Room must is number!" ForeColor="Red" 
                                    ValidationExpression="[\d]*">(*)</asp:RegularExpressionValidator>
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4" style="width:15%">
                                Depart:</td>
                            <td style="width: 35%; text-align: left">
                                <asp:TextBox ID="txtDepart" runat="server" AutoPostBack="True" 
                                    ontextchanged="txtDepart_TextChanged"></asp:TextBox>
                                <asp:CalendarExtender ID="CalendarExtender5" TargetControlID="txtDepart" PopupButtonID="imgDepart" runat="server" Format="dd/MM/yyyy"/>  
                                <%--<asp:Button ID="btnShowDepart" runat="server" Text="...." 
                                    onclick="btnShowDepart_Click1" CausesValidation="False" />--%>
                                <span style="color: Red">
                                <asp:ImageButton ID="imgDepart" runat="server" CausesValidation="False" 
                                    ImageUrl="~/img/cal.gif" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" 
                                    ControlToValidate="txtDepart" ErrorMessage="Depart is required!">(*)</asp:RequiredFieldValidator>
                                </span>
                                <%--<asp:Calendar ID="departDateCal" runat="server" BackColor="#FFFFCC" 
                                    BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                                    Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                                    ShowGridLines="True" Width="220px" 
                                    onselectionchanged="departDateCal_SelectionChanged" Visible="False">
                                    <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                                    <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                                    <OtherMonthDayStyle ForeColor="#CC9966" />
                                    <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                                    <SelectorStyle BackColor="#FFCC66" />
                                    <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                        ForeColor="#FFFFCC" />
                                    <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                                </asp:Calendar>--%>
                            </td>
                            <td class="style1" style="width: 15%;">
                                Return:</td>
                            <td style="width: 35%; text-align: left">
                                <asp:TextBox ID="txtReturn" runat="server" AutoPostBack="True" 
                                    ontextchanged="txtReturn_TextChanged"></asp:TextBox>
                                <asp:CalendarExtender ID="CalendarExtender6" TargetControlID="txtReturn" PopupButtonID="imgReturn" runat="server" Format="dd/MM/yyyy"/>  
                                <%--<asp:Button ID="btnShowReturn" runat="server" Text="...." 
                                    onclick="btnShowReturn_Click" CausesValidation="False" />--%>
                                <span style="color: Red">
                                <asp:ImageButton ID="imgReturn" runat="server" CausesValidation="False" 
                                    Height="16px" ImageUrl="~/img/cal.gif" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" 
                                    ControlToValidate="txtReturn" ErrorMessage="Return is required!">(*)</asp:RequiredFieldValidator>
                                </span>
                                <%--<asp:Calendar ID="returnDateCal" runat="server" BackColor="#FFFFCC" 
                                    BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                                    Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                                    ShowGridLines="True" Width="220px" 
                                    onselectionchanged="returnDateCal_SelectionChanged" Visible="False">
                                    <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                                    <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                                    <OtherMonthDayStyle ForeColor="#CC9966" />
                                    <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                                    <SelectorStyle BackColor="#FFCC66" />
                                    <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                        ForeColor="#FFFFCC" />
                                    <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                                </asp:Calendar>--%>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4" style="width:15%">
                                Night:
                            </td>
                            <td colspan="3" style="width: 85%; text-align: left">
                                <asp:DropDownList ID="ddlNightAdd" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>1.5</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>2.5</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>3.5</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                    <asp:ListItem>4.5</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>5.5</asp:ListItem>
                                    <asp:ListItem>6</asp:ListItem>
                                    <asp:ListItem>6.5</asp:ListItem>
                                    <asp:ListItem>7</asp:ListItem>
                                    <asp:ListItem>7.5</asp:ListItem>
                                    <asp:ListItem>8</asp:ListItem>
                                    <asp:ListItem>8.5</asp:ListItem>
                                    <asp:ListItem>9</asp:ListItem>
                                    <asp:ListItem>9.5</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                    <asp:ListItem>11</asp:ListItem>
                                    <asp:ListItem>12</asp:ListItem>
                                    <asp:ListItem>13</asp:ListItem>
                                    <asp:ListItem>14</asp:ListItem>
                                    <asp:ListItem>15</asp:ListItem>
                                    <asp:ListItem>16</asp:ListItem>
                                    <asp:ListItem>17</asp:ListItem>
                                    <asp:ListItem>18</asp:ListItem>
                                    <asp:ListItem>19</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                    <asp:ListItem>21</asp:ListItem>
                                    <asp:ListItem>22</asp:ListItem>
                                    <asp:ListItem>23</asp:ListItem>
                                    <asp:ListItem>24</asp:ListItem>
                                    <asp:ListItem>25</asp:ListItem>
                                    <asp:ListItem>26</asp:ListItem>
                                    <asp:ListItem Value="27"></asp:ListItem>
                                    <asp:ListItem>28</asp:ListItem>
                                    <asp:ListItem>29</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>31</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </fieldset>

                <table style="width:90%">
                <tr>
                    <td class="style4" style="width:15%">
                        Price:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtPrice" runat="server" Width="68px"></asp:TextBox>
                            <span class="style1">$/tour</span>
                            <span style="color: Red"><asp:RequiredFieldValidator ID="RequiredFieldValidator8" 
                            runat="server" ControlToValidate="txtPrice" ErrorMessage="Price is required!">(*)</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                            ControlToValidate="txtPrice" ErrorMessage="Price must is number!" 
                            ForeColor="Red" ValidationExpression="[\d]*">(*)</asp:RegularExpressionValidator>
                        </span>
                    </td>
                    <td style="width: 15%; " class="style1">
                        Sell price:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtSellPrice" runat="server" Width="68px"></asp:TextBox>
                        <span class="style1">$/tour<span style="color: Red"><asp:RegularExpressionValidator 
                            ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="txtSellPrice" ErrorMessage="Sell price must is number!" 
                            ForeColor="Red" ValidationExpression="[\d]+">(*)</asp:RegularExpressionValidator>
                        </span></span></td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Itenerary:
                    </td>
                    <td style="width: 85%; text-align: left" colspan="3">
                        <asp:TextBox ID="txtItenerary" runat="server" Width="213px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:TextBox ID="txtPlant" runat="server" Height="160px" TextMode="MultiLine" 
                            Width="100%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <fieldset>
                        <legend class="style7">Upload Multiple Photos</legend>
                        <div id="div1" runat="server">
                            <input type="file" size="65" runat="server" id="FileUpload1"/>
                            <input type="file" size="65" runat="server" id="File1"/>
                            <input type="file" size="65" runat="server" id="FileUpload3"/>
                            <input type="file" size="65" runat="server" id="FileUpload4"/>
                            <input type="file" size="65" runat="server" id="FileUpload5"/>
                        </div>
                        <br />
                        <div id="div2" runat="server" visible="false">
                            <input type="file" size="65" runat="server" id="FileUpload6"/>
                            <input type="file" size="65" runat="server" id="FileUpload7"/>
                            <input type="file" size="65" runat="server" id="FileUpload8"/>
                            <input type="file" size="65" runat="server" id="FileUpload9"/>
                            <input type="file" size="65" runat="server" id="FileUpload10"/>
                        </div>
                        <br />
                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Upload" 
                                CausesValidation="False" />
                        <asp:Button ID="ButtonMore" runat="server" Text="Add 10 Photos" 
                                OnClick="ButtonMore_Click" CausesValidation="False" />
                        </fieldset>
                        <br />

                        <div id="div5" runat="server" visible="false">
                        <fieldset>
                        <legend class="style7">Show Photos</legend>
                        <div id="div3" runat="server">
                            <asp:Image ID="Image1" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image2" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image3" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image4" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image5" runat="server" Height="100" Width="100" ImageUrl="" />
                        </div>
                        <br />
                        <div id="div4" runat="server" visible="false">
                            <asp:Image ID="Image6" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image7" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image8" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image9" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image10" runat="server" Height="100" Width="100" ImageUrl="" />
                        </div>
                        </fieldset>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Status:
                    </td>
                    <td style="width: 85%; text-align: left" colspan="3">
                        <asp:TextBox ID="txtStatus" runat="server" Width="30px" MaxLength="1" 
                            ReadOnly="True">0</asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" 
                            Width="311px" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Add new" 
                            Width="79px" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" CausesValidation="False" 
                            OnClick="btnCancel_Click" Text="Back" Width="81px" />
                    </td>
                </tr>
            </table>
        </asp:View>

        <asp:View ID="View3" runat="server">
            <table style="width: 90%">
                <tr>
                    <td colspan="4">
                        <strong><span class="style5" style="font-size: 16pt;">Edit Tour</span></strong></td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Code:
                    </td>
                    <td colspan="3" style="text-align: left">
                        <asp:TextBox ID="txtCodeEdit" runat="server" MaxLength="5" ReadOnly="True" 
                            Width="79px"></asp:TextBox>
                        <span style="color: Red">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                            ControlToValidate="txtCodeEdit" ErrorMessage="Code is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Name:</td>
                    <td style="text-align: left; width:35%">
                        <asp:TextBox ID="txtTourNameEdit" runat="server" Width="213px"></asp:TextBox>
                        <span style="color: Red">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                            ControlToValidate="txtTourNameEdit" ErrorMessage="Name is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                    </td>
                    <td class="style1" style="width: 15%;">
                        Race:
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txtRaceEdit" runat="server" Width="52px">70</asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                            ControlToValidate="txtRaceEdit" ErrorMessage="Race must is number!" 
                            ForeColor="Red" ValidationExpression="[\d]*">(*)</asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Place start:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtPlaceStartEdit" runat="server" Width="213px"></asp:TextBox>
                        <span style="color: Red">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                            ControlToValidate="txtPlaceStartEdit" ErrorMessage="Place start is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                    </td>
                    <td class="style1" style="width: 15%;">
                        Place end:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtPlaceEndEdit" runat="server" Width="213px"></asp:TextBox>
                        <span style="color: Red">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                            ControlToValidate="txtPlaceEndEdit" ErrorMessage="Place end is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Date start:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtStartDateEdit" runat="server" AutoPostBack="True" 
                            ontextchanged="txtStartDateEdit_TextChanged"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender7" TargetControlID="txtStartDateEdit" PopupButtonID="imgStartDateEdit" runat="server" Format="dd/MM/yyyy"/>  
                        <%--<asp:Button ID="btnShowStartDateEdit" runat="server" Text="...." 
                            onclick="btnShowStartDateEdit_Click" CausesValidation="False" />--%>
                        <span style="color: Red">
                        <asp:ImageButton ID="imgStartDateEdit" runat="server" CausesValidation="False" 
                            ImageUrl="~/img/cal.gif" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" 
                            ControlToValidate="txtStartDateEdit" ErrorMessage="Date start is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                        <%--<asp:Calendar ID="startDateEdit" runat="server" BackColor="#FFFFCC" 
                            BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                            Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                            ShowGridLines="True" Width="220px" 
                            onselectionchanged="startDateEdit_SelectionChanged" Visible="False">
                            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                            <OtherMonthDayStyle ForeColor="#CC9966" />
                            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                            <SelectorStyle BackColor="#FFCC66" />
                            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                ForeColor="#FFFFCC" />
                            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        </asp:Calendar>--%>
                    </td>
                    <td class="style1" style="width: 15%;">
                        Date end:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtEndDateEdit" runat="server" AutoPostBack="True" 
                            ontextchanged="txtEndDateEdit_TextChanged"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender8" TargetControlID="txtEndDateEdit" PopupButtonID="imgEndDateEdit" runat="server" Format="dd/MM/yyyy"/> 
                       <%-- <asp:Button ID="btnShowEndDateEdit" runat="server" Text="...." 
                            onclick="btnShowEndDateEdit_Click" CausesValidation="False" />--%>
                        <span style="color: Red">
                        <asp:ImageButton ID="imgEndDateEdit" runat="server" CausesValidation="False" 
                            ImageUrl="~/img/cal.gif" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" 
                            ControlToValidate="txtEndDateEdit" ErrorMessage="Date end is required!">(*)</asp:RequiredFieldValidator>
                        </span>
                        <%--<asp:Calendar ID="endDateEdit" runat="server" BackColor="#FFFFCC" 
                            BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                            Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                            ShowGridLines="True" Width="220px" 
                            onselectionchanged="endDateEdit_SelectionChanged" Visible="False">
                            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                            <OtherMonthDayStyle ForeColor="#CC9966" />
                            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                            <SelectorStyle BackColor="#FFCC66" />
                            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                ForeColor="#FFFFCC" />
                            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        </asp:Calendar>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Interval time:
                    </td>
                    <td colspan="3" style="width: 85%; text-align: left">
                        <asp:DropDownList ID="ddlIntervalTimeEdit" runat="server">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>1.5</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>2.5</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>3.5</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>4.5</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>5.5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>6.5</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>7.5</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem>9</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                            <asp:ListItem>11</asp:ListItem>
                            <asp:ListItem>12</asp:ListItem>
                            <asp:ListItem>13</asp:ListItem>
                            <asp:ListItem>14</asp:ListItem>
                            <asp:ListItem>15</asp:ListItem>
                            <asp:ListItem>16</asp:ListItem>
                            <asp:ListItem>17</asp:ListItem>
                            <asp:ListItem>18</asp:ListItem>
                            <asp:ListItem>19</asp:ListItem>
                            <asp:ListItem>20</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                </table>

                <fieldset style="width:90%">
                    <legend class="style7">Hotel&#39;s info</legend>
                    <table style="width: 100%">
                        <tr>
                            <td class="style4" style="width:15%">
                                Hotel:</td>
                            <td style="width: 35%; text-align: left">
                                <asp:DropDownList ID="ddlHotelEdit" runat="server">
                                </asp:DropDownList>
                                &nbsp;
                                <asp:LinkButton ID="LinkButton7" runat="server" ForeColor="Yellow" 
                                    onclick="LinkButton7_Click" CausesValidation="False">Detail</asp:LinkButton>
                            </td>
                            <td class="style4" style="width:15%">Room:</td>
                            <td><asp:TextBox ID="txtRoomEdit" runat="server" Width="68px"></asp:TextBox>
                                <span style="color: Red">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" 
                                    ControlToValidate="txtRoomEdit" ErrorMessage="Room is required!">(*)</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                                    ControlToValidate="txtRoomEdit" ErrorMessage="Room must is number!" 
                                    ForeColor="Red" ValidationExpression="[\d]*">(*)</asp:RegularExpressionValidator>
                                </span></td>
                        </tr>
                        <tr>
                            <td class="style4" style="width:15%">
                                Depart:</td>
                            <td style="width: 35%; text-align: left">
                                <asp:TextBox ID="txtDepartEdit" runat="server" AutoPostBack="True" 
                                    ontextchanged="txtDepartEdit_TextChanged"></asp:TextBox>
                                <asp:CalendarExtender ID="CalendarExtender9" TargetControlID="txtDepartEdit" PopupButtonID="imgDepartEdit" runat="server" Format="dd/MM/yyyy"/> 
                                <%--<asp:Button ID="btnShowDepartEdit" runat="server" Text="...." 
                                    onclick="btnShowDepart_Click" CausesValidation="False" />--%>
                                <span style="color: Red">
                                <asp:ImageButton ID="imgDepartEdit" runat="server" CausesValidation="False" 
                                    ImageUrl="~/img/cal.gif" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="txtDepart" ErrorMessage="Depart is required!">(*)</asp:RequiredFieldValidator>
                                </span>
                                <%--<asp:Calendar ID="departDateEditCal" runat="server" BackColor="#FFFFCC" 
                                    BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                                    Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                                    ShowGridLines="True" Width="220px" 
                                    onselectionchanged="departDateEditCal_SelectionChanged" Visible="False">
                                    <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                                    <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                                    <OtherMonthDayStyle ForeColor="#CC9966" />
                                    <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                                    <SelectorStyle BackColor="#FFCC66" />
                                    <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                        ForeColor="#FFFFCC" />
                                    <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                                </asp:Calendar>--%>
                            </td>
                            <td class="style1" style="width: 15%;">
                                Return:</td>
                            <td style="width: 35%; text-align: left">
                                <asp:TextBox ID="txtReturnEdit" runat="server" AutoPostBack="True" 
                                    ontextchanged="txtReturnEdit_TextChanged"></asp:TextBox>
                                <asp:CalendarExtender ID="CalendarExtender10" TargetControlID="txtReturnEdit" PopupButtonID="imgReturnEdit" runat="server" Format="dd/MM/yyyy" /> 
                                <%--<asp:Button ID="btnShowReturnEdit" runat="server" Text="...." 
                                    onclick="btnShowReturnEdit_Click" CausesValidation="False" />--%>
                                <span style="color: Red">
                                <asp:ImageButton ID="imgReturnEdit" runat="server" CausesValidation="False" 
                                    ImageUrl="~/img/cal.gif" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                    ControlToValidate="txtReturn" ErrorMessage="Return is required!">(*)</asp:RequiredFieldValidator>
                                </span>
                                <%--<asp:Calendar ID="returnDateEditCal" runat="server" BackColor="#FFFFCC" 
                                    BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
                                    Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" 
                                    ShowGridLines="True" Width="220px" 
                                    onselectionchanged="returnDateEditCal_SelectionChanged" Visible="False">
                                    <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
                                    <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                                    <OtherMonthDayStyle ForeColor="#CC9966" />
                                    <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                                    <SelectorStyle BackColor="#FFCC66" />
                                    <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
                                        ForeColor="#FFFFCC" />
                                    <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                                </asp:Calendar>--%>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4" style="width:15%">
                                Night:
                            </td>
                            <td colspan="3" style="width: 85%; text-align: left">
                                <asp:DropDownList ID="ddlNight" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                                    <asp:ListItem>1.5</asp:ListItem>
                                    <asp:ListItem>2</asp:ListItem>
                                    <asp:ListItem>2.5</asp:ListItem>
                                    <asp:ListItem>3</asp:ListItem>
                                    <asp:ListItem>3.5</asp:ListItem>
                                    <asp:ListItem>4</asp:ListItem>
                                    <asp:ListItem>4.5</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>5.5</asp:ListItem>
                                    <asp:ListItem>6</asp:ListItem>
                                    <asp:ListItem>6.5</asp:ListItem>
                                    <asp:ListItem>7</asp:ListItem>
                                    <asp:ListItem>7.5</asp:ListItem>
                                    <asp:ListItem>8</asp:ListItem>
                                    <asp:ListItem>9</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                    <asp:ListItem>11</asp:ListItem>
                                    <asp:ListItem>12</asp:ListItem>
                                    <asp:ListItem>13</asp:ListItem>
                                    <asp:ListItem>14</asp:ListItem>
                                    <asp:ListItem>15</asp:ListItem>
                                    <asp:ListItem>16</asp:ListItem>
                                    <asp:ListItem>17</asp:ListItem>
                                    <asp:ListItem>18</asp:ListItem>
                                    <asp:ListItem>19</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </fieldset>

                <table style="width: 90%">
                <tr>
                    <td class="style4" style="width:15%">
                        Price:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtPriceEdit" runat="server" Width="68px"></asp:TextBox>
                            <span class="style1">$/tour</span><span 
                            style="color: Red"><asp:RequiredFieldValidator 
                            ID="RequiredFieldValidator13" runat="server" ControlToValidate="txtPriceEdit" 
                            ErrorMessage="Price is required!">(*)</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                            ControlToValidate="txtPriceEdit" ErrorMessage="Price must is number!" 
                            ForeColor="Red" ValidationExpression="[\d]*">(*)</asp:RegularExpressionValidator>
                        </span>
                    </td>
                    <td class="style1" style="width: 15%;">
                        Sell price:</td>
                    <td style="width: 35%; text-align: left">
                        <asp:TextBox ID="txtSellPriceEdit" runat="server" Width="68px"></asp:TextBox>
                        <span class="style1">$/tour<span style="color: Red"><asp:RegularExpressionValidator 
                            ID="RegularExpressionValidator8" runat="server" 
                            ControlToValidate="txtSellPriceEdit" ErrorMessage="Sell price must is number!" 
                            ForeColor="Red" ValidationExpression="[\d]+">(*)</asp:RegularExpressionValidator>
                        </span></span></td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Itenerary:
                    </td>
                    <td colspan="3" style="width: 85%; text-align: left">
                        <asp:TextBox ID="txtIteneraryEdit" runat="server" Width="213px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" >
                        <asp:TextBox ID="txtPlantEdit" runat="server" Height="160px" 
                            TextMode="MultiLine" Width="100%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <fieldset>
                        <legend class="style7">Upload Multiple Photos</legend>
                        <div id="div1Edit" runat="server">
                            <input type="file" size="65" runat="server" id="FileUpload1Edit"/>
                            <input type="file" size="65" runat="server" id="FileUpload2Edit"/>
                            <input type="file" size="65" runat="server" id="FileUpload3Edit"/>
                            <input type="file" size="65" runat="server" id="FileUpload4Edit"/>
                            <input type="file" size="65" runat="server" id="FileUpload5Edit"/>
                        </div>
                        <br />
                        <div id="div2Edit" runat="server" visible="false">
                            <input type="file" size="65" runat="server" id="FileUpload6Edit"/>
                            <input type="file" size="65" runat="server" id="FileUpload7Edit"/>
                            <input type="file" size="65" runat="server" id="FileUpload8Edit"/>
                            <input type="file" size="65" runat="server" id="FileUpload9Edit"/>
                            <input type="file" size="65" runat="server" id="FileUpload10Edit"/>
                        </div>
                        <br />
                            <asp:Button ID="btnUploadEdit" runat="server" OnClick="btnUploadEdit_Click" 
                                Text="Upload" CausesValidation="False" />
                        <asp:Button ID="btnButtonMoreEdit" runat="server" Text="Add 10 Photos" 
                                OnClick="btnButtonMoreEdit_Click" CausesValidation="False" />
                        </fieldset>
                        <br />

                        <div id="div5Edit" runat="server" visible="false">
                        <fieldset>
                        <legend class="style7">Show Photos</legend>
                        <div id="div3Edit" runat="server">
                            <asp:Image ID="Image1Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image2Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image3Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image4Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image5Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                        </div>
                        <br />
                        <div id="div4Edit" runat="server" visible="false">
                            <asp:Image ID="Image6Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image7Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image8Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image9Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                            <asp:Image ID="Image10Edit" runat="server" Height="100" Width="100" ImageUrl="" />
                        </div>
                        </fieldset>
                        </div>    
                    </td>
                </tr>
                <tr>
                    <td class="style4" style="width:15%">
                        Status:
                    </td>
                    <td colspan="3" style="width: 85%; text-align: left">
                        <asp:TextBox ID="txtStatusEdit" runat="server" MaxLength="1" Width="30px">0</asp:TextBox>
                        &nbsp;<span class="style1">(0 is enable, 1 is disable)</span></td>
                </tr>
                <tr>
                    <td colspan="4" >
                        <asp:ValidationSummary ID="ValidationSummary2" runat="server" ForeColor="Red" 
                            Width="311px" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4" >
                        <asp:Button ID="btnEdit" runat="server" OnClick="btnEdit_Click" Text="Edit" 
                            Width="79px" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancel2" runat="server" CausesValidation="False" 
                            OnClick="btnCancel2_Click" Text="Back" Width="81px" />
                    </td>
                </tr>
            </table>
        </asp:View>
        <br />
        <asp:View ID="View4" runat="server">
            <table style="width: 80%">
                <tr>
                    <td colspan="3">
                        <strong><span class="style7" style="font-size: 16pt; ">Hotel info</span></strong></td>
                </tr>
                <tr>
                    <td class="style1" style="width: 15%; ">
                        Name:</td>
                    <td colspan="2" style="width: 40%; text-align: left">
                        <asp:Label ID="lblHotelName" runat="server" ForeColor="White"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style1" style="width: 15%; ">
                        Start:</td>
                    <td colspan="2" style="width: 40%; text-align: left">
                        <asp:DropDownList ID="ddlStartHotel" runat="server" Enabled="False">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style1" style="width: 15%; ">
                        Price:</td>
                    <td colspan="2" style="width: 40%; text-align: left">
                        <asp:Label ID="lblPrice" runat="server" ForeColor="White"></asp:Label>
                        &nbsp;<span class="style1">$/day </span>
                    </td>
                </tr>
                <tr>
                    <td class="style1" style="width: 15%; ">
                        Tel:</td>
                    <td colspan="2" style="width: 40%; text-align: left">
                        <asp:Label ID="lblTel" runat="server" ForeColor="White"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style1" style="width: 15%; ">
                        Address:
                    </td>
                    <td style="width: 40%; text-align: left">
                        <asp:Label ID="lblAddress" runat="server" ForeColor="White"></asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1" style="width: 15%; ">
                        Description:</td>
                    <td colspan="2" style="width: 40%; text-align: left">
                        <asp:Label ID="lblDes" runat="server" ForeColor="White"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="text-align: left">
                        <div ID="div5Edit0" runat="server" visible="true">
                            <fieldset>
                                <legend class="style7">Show Photos</legend>
                                <div ID="div3Edit0" runat="server">
                                <encosia:HighslideManager ID="HighslideManager1" runat="server" OutlineType="Beveled" ControlBar="true" />  
                                    <encosia:HighslideImage ID="Image1Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />
                                    <encosia:HighslideImage ID="Image2Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />
                                    <encosia:HighslideImage ID="Image3Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />
                                    <encosia:HighslideImage ID="Image4Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />
                                    <encosia:HighslideImage ID="Image5Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />            
                                    <%--<asp:Image ID="Image1Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />--%>
                                    <%--<asp:Image ID="Image2Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />
                                    <asp:Image ID="Image3Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />
                                    <asp:Image ID="Image4Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />
                                    <asp:Image ID="Image5Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />--%>
                                </div>
                                <br />
                                <div ID="div4Edit0" runat="server" visible="false">
                                    <encosia:HighslideImage ID="Image6Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />
                                    <encosia:HighslideImage ID="Image7Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />
                                    <encosia:HighslideImage ID="Image8Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />
                                    <encosia:HighslideImage ID="Image9Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  />
                                    <encosia:HighslideImage ID="Image10Edit0" runat="server" Width="100" Height="100"
                                                ImageUrl='' FullImageURL=''  /> 
                                   <%-- <asp:Image ID="Image6Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />
                                    <asp:Image ID="Image7Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />
                                    <asp:Image ID="Image8Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />
                                    <asp:Image ID="Image9Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />
                                    <asp:Image ID="Image10Edit0" runat="server" Height="100" ImageUrl="" 
                                        Width="100" />--%>
                                </div>
                            </fieldset>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:Button ID="btnBack" runat="server" CausesValidation="False" 
                            OnClick="btnBack_Click" Text="Back" Width="79px" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#ctl00_ContentPlaceHolder1_GridView1").tablesorter();
        });
    </script>
</asp:Content>

